{include file="public/header"}
<!-- <link rel="stylesheet" type="text/css" href="__WEbPUBLIC__/layui/css/layui.mobile.css"/> -->
<!-- <link rel="stylesheet" type="text/css" href="__WEbPUBLIC__/layui/css/layui.mobile.css"/> -->
<script src="__WEBJS__/jquery-1.9.1.min.js"></script>
<!-- <script src="__WEbPUBLIC__/layui/layui.js"></script>
<script src="__WEBJS__/layer/mobile/layer.js"></script> -->
<body style="background:url(__IMG__image/cs2.png) no-repeat; background-size:100% 100%;">
    <div class="qgcs2_s" style="height:68%; overflow:scroll;">
    {volist name="diaocha" id="vo" key="k"}
        <span class="qgcs2_st">{$k}、{$vo.title}</span>
        <span class="qgcs2_sn">
            <span class="qgcs2_sn1"><input name="{$vo.id}" type="radio" value="5" class="check goods-check goodsCheck">A 5-{$vo.a}</span>
            <span class="qgcs2_sn1"><input name="{$vo.id}" type="radio" value="3" class="check goods-check goodsCheck">B 3-{$vo.b}</span>
            <span class="qgcs2_sn1"><input name="{$vo.id}" type="radio" value="1" class="check goods-check goodsCheck">C 1-{$vo.c}</span>
        </span>
    {/volist}
    </div>
    <a href="javascript:;" class="qgcs2_x"><img src="__IMG__image/cs1.png" /></a>
   <script type="text/javascript">
   $(".qgcs2_x").click(function(){
    count={$num};
    fenshu=0;
    num=0;
    $("input").each(function(){
        if($(this).is(":checked")){
            var shu=parseInt($(this).val());
            fenshu +=shu;
            num++;
        }  
    })
       if(num==count){
        window.location.href="{:url('diaocha/index2')}?fenshu="+fenshu;
       }else{
        alert("您还有未完成的题目");
       }

   })
   </script>
{include file="public/_footer"}